package com.liner.homework.third;

public class Chick extends Animal{

    public Chick(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(getName() + "it's eating a worm");
    }

    void layEggs(){
        System.out.println(getName() + " is hatching eggs");
    }
}
